ExamPlay Light Logo
Prisijunkite

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 8 - No. 26)

In the bubble sort algorithm, what causes a swap of two numbers?
The values are equal.
The value of index is an odd number.
The second value in the list is greater than the first.
The values are in the incorrect order.

Paaiškinimas

Two values are swapped if they are in the wrong order, for example, one is greater than the other and they're in the wrong sequence.

Komentarai (0)

Prisijungti Norėdami komentuoti
Skelbimas
BrainBehindX Inc Logo
©2026; Maitinamas BrainBehindX Inc